<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>commAdminRestaurant.jsp</title>
    <link href="${pageContext.request.contextPath }/css/waimaistyle.css"
	type=text/css rel=stylesheet />
  </head>
  
  <body>
    <p align="center">商家店铺管理</p>
    <table  align="center" border="1" cellspacing="0" cellpadding="20"
		class="table">
		<tr>
			<td>店铺编号</td>
			<td>店铺名称</td>
			<td>店铺密码</td>
			<td>店铺地址</td>
			<td>联系方式</td>
			<td>起步价格</td>
			<td>配送费用</td>
			<td>送餐范围</td>
			<td>食品种类</td>
		</tr>
		<c:forEach items="${restaurants}" var="r">
			<tr>
				<td>${r.restaurantId }</td>
				<td>${r.restaurantName }</td>
				<td>${r.password }</td>
				<td>${r.address }</td>
				<td>${r.phone }</td>
				<td>${r.sendPrice }</td>
				<td>${r.deliveryPrice }</td>
				<td>${r.deliveryRange }</td>
				<td>
					<a href="${pageContext.request.contextPath }/admin/toResCategory?restaurantId=${r.restaurantId }">查询</a>
					<a href="${pageContext.request.contextPath }/admin/toFoodCategory?restaurantId=${r.restaurantId }">添加</a>
				</td>
			</tr>
		</c:forEach>
	</table>
  </body>
</html>
